import { createApp } from 'vue'
import { createPinia } from 'pinia'

// 引入Vant组件库
import Vant from 'vant'
import 'vant/lib/index.css'

import '@vant/touch-emulator'

import App from './App.vue'
import router from './router'
import { useUserStore } from '@/stores/user'

const app = createApp(App)

// 使用Vant组件库
app.use(Vant)
app.use(createPinia())
app.use(router)

// 初始化用户状态
const userStore = useUserStore()
userStore.initUserInfo()

app.mount('#app')
